import { ref, computed } from 'vue'

export default () => {
  let sum = ref(0)
  let bigSum = computed(() => {
    return sum.value * 2
  })
  function add() {
    sum.value++
  }
  return { sum, add, bigSum }
}
